// 入口文件
import Vue from 'vue';   
import app from './App.vue';
import './lib/mui/css/mui.min.css';
import './lib/mui/css/icons-extra.css';
import VueRouter from 'vue-router';
import router from './router.js';
import VueResource from 'vue-resource';
// 导入时间格式化插件
import moment from 'moment';
Vue.filter('dateFormat',function(dateStr,pattern='YYYY-MM-DD HH:mm:ss'){
   return moment(dateStr).format(pattern)
})
import VuePreview from 'vue-preview'
 
// defalut install
Vue.use(VuePreview)
Vue.use(VueRouter)
Vue.use(VueResource)
// import {Header,Swipe, SwipeItem,button,Lazyload } from 'mint-ui';
// Vue.component(Header.name,Header);
// Vue.component(Swipe.name, Swipe);
// Vue.component(SwipeItem.name, SwipeItem);
// Vue.component(button.name, button);
// Vue.use(Lazyload)
import MintUi from 'mint-ui'
Vue.use(MintUi)
import 'mint-ui/lib/style.css'
Vue.http.options.root ='http://www.liulongbin.top:3005';
Vue.http.options.emulateHTTP = true;
var vm = new Vue({
    el:"#app",
    render:c=>c(app),
    router
})